import {
	goodDetails
} from '@/network/api/home.js'
const state = {

}
const getters = {

}

const actions = {
	toDetails({
		commit
	}, goods_id) {
		uni.navigateTo({
			url: `/pages/goods/index?goods_id=${goods_id}`,
		});
	},
	async getgoodDetails({
		commit
	}, data) {
		const res = await goodDetails(data.goods_id, data.user_id)
		// this.good = res.data.good
		return res.data
	},
}
const mutations = {

}

export default {
	state,
	actions,
	getters,
	mutations
}